﻿<%@ Page Language="C#" AutoEventWireup="true" %>

<%@ Register Assembly="System.Web.Silverlight" Namespace="System.Web.UI.SilverlightControls"
    TagPrefix="asp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>HelpCatch</title>
    <script language="javascript">
        var slCtl = null;
        //on loading of the Silverlight controll hook up the help, this only way works in IE
        function pluginLoaded(sender, args) {
            slCtl = sender.getHost();
            // Internet Explorer
            window.onhelp = function() { OnHelp(); return false; };
        } 
        function OnHelp() {
            slCtl.Content.JS.Help();
        }
    </script>

</head>
<body>
    <form id="form1" runat="server" style="height: 100%;">
    <object id="Xaml1" data="data:application/x-silverlight-2," type="application/x-silverlight-2"
        width="100%" height="100%">
        <param name="source" value="ClientBin/HelpCatch.xap" />
        <param name="onLoad" value="pluginLoaded" />
    </object>
    </form>
</body>
</html>
